/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package systole.view.accordion;

import java.awt.Color;

/**
 *
 * @author user
 */
public class ButtonHighlighter {

    private static final Color focusColor = new Color(0,0,204);
    private static final Color defaultColor = new Color(240,240,240);

    public static void highlight(javax.swing.JButton btn){
        btn.setBackground(focusColor);
        btn.revalidate();
    }

    public static void unhighlight(javax.swing.JButton btn){
        btn.setBackground(defaultColor);
        btn.revalidate();
    }

}
